home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Embed / Include / EmbedFra.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.6 KB  |  86 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                EmbedFra.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef EMBEDFRAME_H
  13. #define EMBEDFRAME_H
  14.  
  15. // ----- Framework Includes -----
  16.  
  17. #ifndef FWFRMING_H
  18. #include "FWFrming.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward class declaration
  23. //========================================================================================
  24.  
  25. class FW_CLASS_ATTR CEmbedPart;
  26.  
  27. //========================================================================================
  28. // CLASS CEmbedFrame
  29. //========================================================================================
  30.  
  31. class FW_CLASS_ATTR CEmbedFrame : public FW_CEmbeddingFrame
  32. {
  33. //----------------------------------------------------------------------------------------
  34. //    Initialization/Destruction
  35. //
  36.   public:
  37.     CEmbedFrame(Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, CEmbedPart* part);
  38.     virtual ~CEmbedFrame();
  39.  
  40. //----------------------------------------------------------------------------------------
  41. //    Inherited API
  42. //
  43.   public:
  44.     virtual void             Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  45.  
  46.     virtual FW_Boolean         DoAdjustMenus(Environment* ev, 
  47.                                         FW_CMenuBar* menuBar, 
  48.                                         FW_Boolean hasMenuFocus, 
  49.                                         FW_Boolean isRoot);
  50.  
  51.     virtual void             EmbedSingleFrame(Environment* ev,
  52.                                           ODPart* odEmbeddedPart, 
  53.                                           ODFrame* odEmbeddedFrame,
  54.                                           ODShape* suggestedFrameShape);
  55.  
  56.     virtual ODFacet*        CreateEmbeddedFacet(Environment* ev,
  57.                                         ODFacet* embeddingFacet,
  58.                                         FW_MProxy* proxy,
  59.                                         ODFrame* embeddedFrame,
  60.                                         ODShape* proposedClipShape);
  61.                                         
  62.     virtual void            FrameShapeChanged(Environment* ev);
  63.  
  64.     virtual FW_CEditCommand* NewEditCommand(Environment* ev, ODCommandID commandID);
  65.  
  66.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  67.                                             FW_CFrame* frame,
  68.                                             ODDragItemIterator* dropInfo, 
  69.                                             ODFacet* odFacet, 
  70.                                             const FW_CPoint& dropPoint);
  71.  
  72. //----------------------------------------------------------------------------------------
  73. //    Data Members
  74. //
  75. private:
  76.     ODShape*                MakeFrameShape(Environment* ev);
  77.  
  78. //----------------------------------------------------------------------------------------
  79. //    Data Members
  80. //
  81.   private:
  82.     CEmbedPart*    fPart;
  83. };
  84.  
  85. #endif
  86.